package org.example.mybatis0705lastest;

//package org.example.mybatis0705lastest;

import org.example.mybatis0705lastest.entity.User;
import org.example.mybatis0705lastest.mapper.UserMapper;
import org.example.mybatis0705lastest.mapper.UserMapper2;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;

//public class UserMapperTest {
//}
@SpringBootTest // 注解，加载spring环境
public class UserMapperTest2 {
    @Autowired
    private UserMapper userMapper; // 依赖注入
    @Test
    public void test() {
        List<User> list = userMapper.list();
        System.out.println(list);
    }
}
